<!--
 * @Author: yushuang
 * @Date: 2024-12-03 15:58:14
 * @LastEditors: yushuang
 * @LastEditTime: 2024-12-04 17:00:21
 * @Description: 
-->
<script setup lang="ts">
import { useRouter } from 'vue-router';
import { notification } from 'ant-design-vue';
const openNotification = () => {
  notification.info({
    message: '测试',
    description: '测试的内容',
    placement: 'topLeft',
    duration: 0
  });
};
const router = useRouter();
const onOpenLik = (id: string) => {
  router.push({
    path: '/form/edit',
    query: {
      id
    }
  });
};
</script>

<template>
  <div p-2>
    Analysis
    <a-button @click="openNotification"> notification </a-button>
    <a-button @click="onOpenLik('111')"> 按钮1 </a-button>
    <a-button @click="onOpenLik('22')"> 按钮2 </a-button>
  </div>
</template>
